package com.xiangxiao.rpan.storage.chain;

import com.xiangxiao.rpan.storage.dto.FileQueryDto;
import com.xiangxiao.rpan.storage.entity.FileItemResult;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.chain.impl.ContextBase;

import java.util.List;
/**
 * @auther xiangxiao
 * @email 573768011@qq.com
 * @data 2023/12/26 15:44
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@Builder
public class FileContext extends ContextBase {

  /**
   * 存储源 id
   */
  private Integer storageId;

  /**
   * 存储源请求
   */
  private FileQueryDto fileListRequest;

  /**
   * 根据存储源请求获取到的文件列表
   */
  private List<FileItemResult> fileItemList;

  /**
   * 当前目录密码路径表达式
   */
  private String passwordPattern;

}